﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleUser.aspx.cs" Inherits="HQWeb.SysManage.RoleManage.RoleUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/GridViewStyle.css" rel="Stylesheet" type="text/css" />
    <%--  <link href="../../Styles/Site.css" rel="Stylesheet" type="text/css" />--%>
    <script language="javascript" type="text/javascript">
        function OpenShow() {
            var str = window.showModalDialog('RoleAddUserFrame.htm', '增加人员', 'dialogHeight:500px;dialogWidth:750px;status:no;');
            window.close();
            window.document.location.reload();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="title">
            <asp:Label ID="Label7" runat="server" Text="角色名:  "></asp:Label><asp:Label ID="ROLENAME"
                runat="server"></asp:Label>
        </div>
        <hr />
        <div>
            <input value="增加人员" type="button" onclick="OpenShow();" />
            <br />
            <asp:GridView ID="GridView1" runat="server" CellPadding="4" CellSpacing="1" PageSize="25"
                GridLines="None" AutoGenerateColumns="False" CssClass="GridViewStyle" Width="100%"
                AllowPaging="True" AllowSorting="false" EmptyDataText="没有数据记录！！" DataKeyNames="ID"
                OnRowDeleting="GridView1_RowDeleting" OnPageIndexChanging="GridView1_PageIndexChanging"
                OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" />
                    <asp:BoundField DataField="sysmbol" HeaderText="用户名" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
                        <ItemStyle Width="20%"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="dNmae" HeaderText="部门" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
                        <ItemStyle Width="30%"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="tNmam" HeaderText="所属店" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
                        <ItemStyle Width="30%"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="功能" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:LinkButton ID="DelButton" Text="删除" CommandName="Delete" runat="server" OnClientClick="return confirm('确认要删除此行信息吗？')" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerTemplate>
                    <table width="100%">
                        <tr>
                            <td style="text-align: center">
                                第<asp:Label ID="lblPageIndex" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />页
                                共<asp:Label ID="lblPageCount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount  %>' />页
                                <asp:LinkButton ID="btnFirst" runat="server" CausesValidation="False" CommandArgument="First"
                                    CommandName="Page" Text="首页" ForeColor="White" />
                                <asp:LinkButton ID="btnPrev" runat="server" CausesValidation="False" CommandArgument="Prev"
                                    CommandName="Page" Text="上一页" ForeColor="White" />
                                <asp:LinkButton ID="btnNext" runat="server" CausesValidation="False" CommandArgument="Next"
                                    CommandName="Page" Text="下一页" ForeColor="White" />
                                <asp:LinkButton ID="btnLast" runat="server" CausesValidation="False" CommandArgument="Last"
                                    CommandName="Page" Text="尾页" ForeColor="White" />
                                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="28px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />
                                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-1"
                                    CommandName="Page" Text="GO" ForeColor="White" /><!-- here set the CommandArgument of the Go Button to '-1' as the flag -->
                            </td>
                        </tr>
                    </table>
                </PagerTemplate>
                <FooterStyle CssClass="GridViewFooterStyle" />
                <RowStyle CssClass="GridViewRowStyle" />
                <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                <PagerStyle CssClass="GridViewPagerStyle" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <HeaderStyle CssClass="GridViewHeaderStyle" />
            </asp:GridView>
        </div>
        <div>
            <asp:TextBox ID="txtIdHid" runat="server" Visible="false" />
        </div>
    </div>
    </form>
</body>
</html>
